package org.webball.main;

import java.io.IOException;
import java.net.UnknownHostException;

import org.newdawn.slick.AppGameContainer;
import org.newdawn.slick.SlickException;
import org.webball.base.interfaces.ILogin;
import org.webball.communication.Communication;

/**
 * 
 * @author Elwira Kowalewska
 *
 */
public class Main
{
	/**
     * @param args
     */

	private ILogin login;
	
    public static void main(String[] args)
    {
    	// najpierw polaczenie z serwerem, czat, itd.
    	//login = new Login();
    	//login.startWindow();
    	//login.Lobby();
    	
    	// ustawienie numeru teamu, ktorym gramy (od Michala Kozlaka)
    	int teamN = 0;
    	
    	// pozniej ustawienie playerow
    	Communication comm;
		try
		{
			comm = new Communication("localhost", 5466);	// testowe polaczenie
			PlayersSkillsWindow psw = new PlayersSkillsWindow(comm, teamN);
			
			// slick bedzie uruchamiany w klasie PlayersSkillsWindow
			// w ActionListenerze nextPlayer
		}
		catch (UnknownHostException e)	{e.printStackTrace();}
		catch (IOException e)			{e.printStackTrace();}
    }
}